CredentialQuery

@Serializable
data class CredentialQuery(val id: QueryId, val format: Format, val meta: JsonObject, val multiple: Boolean? = null, val trustedAuthorities: List<TrustedAuthority>? = null, val requireCryptographicHolderBinding: Boolean? = null, val claims: List<ClaimsQuery>? = null, val claimSets: List<ClaimSet>? = null) : Serializable(source)

Represents a request for a presentation of one Credential.

Constructors

Link copied to clipboard
constructor(id: QueryId, format: Format, meta: JsonObject, multiple: Boolean? = null, trustedAuthorities: List<TrustedAuthority>? = null, requireCryptographicHolderBinding: Boolean? = null, claims: List<ClaimsQuery>? = null, claimSets: List<ClaimSet>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@SerialName(value = "claims")
val claims: List<ClaimsQuery>? = null

A non-empty list that specifies claims in the requested Credential.

Link copied to clipboard
@SerialName(value = "claim_sets")
val claimSets: List<ClaimSet>? = null

A non-empty set containing sets of identifiers for elements in claims that specifies which combinations of claims for the Credential are requested

Link copied to clipboard
@SerialName(value = "format")
@Required
val format: Format
Link copied to clipboard
@SerialName(value = "id")
@Required
val id: QueryId

A string identifying the Credential in the response and, if provided, the constraints in credential_sets

Link copied to clipboard
@SerialName(value = "meta")
@Required
val meta: JsonObject

An object defining additional properties requested by the Verifier that apply to the metadata and validity data of the Credential. The properties of this object are defined per Credential Format.

Link copied to clipboard
@SerialName(value = "multiple")
val multiple: Boolean? = null

A boolean which indicates whether multiple Credentials can be returned for this Credential Query

Link copied to clipboard
Link copied to clipboard
@SerialName(value = "require_cryptographic_holder_binding")
val requireCryptographicHolderBinding: Boolean? = null

A boolean which indicates whether the Verifier requires a Cryptographic Holder Binding proof. The default value is true, i.e., a Verifiable Presentation with Cryptographic Holder Binding is required. If set to false, the Verifier accepts a Credential without Cryptographic Holder Binding proof.

Link copied to clipboard
@SerialName(value = "trusted_authorities")
val trustedAuthorities: List<TrustedAuthority>? = null